package com.nuedu.corejava.ch3.homework;

public class SelectHomeWork2 {
	public static void main(String[] args) {
		int sum=1;
		int i=1;
		while (true) {
			sum=(sum+1)*2;
			i++;
			if (i==10) {
				break;
			}
			
		}
		System.out.println(sum);
	}

}
